import { instance } from '@/configs/request/index'
import type { QueryDTO } from '@/assets/js/utils/entity/QueryDTO'

export const listMenu = (params: QueryDTO) => {
    return instance.post('/lms-portal-service/menu/listMenu', params)
}

export const saveMenu = (params: any) => {
    return instance.post('/lms-portal-service/menu/save', params)
}

export const removeMenu = (ids: string[]) => {
    return instance.post('/lms-portal-service/menu/delete', ids)
}

export const getRoleOne = (id: string) => {
    return instance.get('/lms-portal-service/menu/get/' + id)
}